package com.hualan.sfzy.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hualan.sfzy.model.vo.AnswerCount;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
// 回复表
public class Answer {
    private Integer id;
    private String content;
    private Integer userId;
    private Integer questionId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    private Integer del;

    /*外键*/
    private SystemUsers systemUsers;

    private Question questions;

    private  List<AnswerCount> answerCounts;
}
